﻿
#region File Description
//-----------------------------------------------------------------------------
// OptionsMenuScreen.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#endregion

#region Using Statements
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using GameStateManagement;
#endregion

namespace TermitesMagnets
{
    /// <summary>
    /// The options screen is brought up over the top of the main menu
    /// screen, and gives the user a chance to configure the game
    /// in various hopefully useful ways.
    /// </summary>
    class AboutMenuScreen : MenuScreen
    {

        #region Initialization


        /// <summary>
        /// Constructor.
        /// </summary>
        public AboutMenuScreen()
            : base("About")
        {

            MenuEntry back = new MenuEntry("Back");

            // Hook up menu event handlers.
            back.Selected += OnCancel;

            // Add entries to the menu.
            MenuEntries.Add(back);
        }

        #endregion

        /// <summary>
        /// Draws the menu.
        /// </summary>
        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);

            SpriteBatch spriteBatch = ScreenManager.SpriteBatch;
            spriteBatch.Begin();

            SpriteFont font = ScreenManager.Font;
            Color color = Color.White * TransitionAlpha;
            float scale = 0.75f;

            spriteBatch.DrawString(font, "Termites Magnets(c) Created By:", new Vector2(50, 260), color, 0,
                                   Vector2.Zero, scale, SpriteEffects.None, 0);

            spriteBatch.Draw(ScreenManager.alonTexture, new Vector2(50, 300), color);
            spriteBatch.DrawString(font, "Alon Segal", new Vector2(50, 420), color, 0,
                                   Vector2.Zero, scale, SpriteEffects.None, 0);
            
            spriteBatch.Draw(ScreenManager.rubyTexture, new Vector2(240, 300), color);
            spriteBatch.DrawString(font, "Ruby Feinstein", new Vector2(240, 420), color, 0,
                                   Vector2.Zero, scale, SpriteEffects.None, 0);
            
            spriteBatch.Draw(ScreenManager.shaiTexture, new Vector2(430, 300), color);
            spriteBatch.DrawString(font, "Shai Cantor", new Vector2(430, 420), color, 0,
                                   Vector2.Zero, scale, SpriteEffects.None, 0);
            
            spriteBatch.Draw(ScreenManager.ofirTexture, new Vector2(620, 300), color);
            spriteBatch.DrawString(font, "Ofir Weissberg", new Vector2(620, 420), color, 0,
                                   Vector2.Zero, scale, SpriteEffects.None, 0);

            spriteBatch.End();
        }
    }
}
